package com.tc.dispatch.web.gsservice;


import java.util.*;
import java.text.*;
import javax.ejb.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.tc.dispatch.gsservice.util.*;
import com.tc.dispatch.gsservice.ejb.*;
import com.tc.dispatch.gsservice.exception.*;
import com.tc.dispatch.web.util.JNDINames;
import com.tc.dispatch.web.util.ServiceLocator;
import com.tc.dispatch.web.util.ServiceLocatorException;
import com.tc.dispatch.web.exception.*;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.*;

public class gsHelper {
  public static
      GSServiceLocal getGSServiceLocal() {
    ServiceLocator sl = ServiceLocator.getInstance();
    try {
      return ( (GSServiceLocalHome) sl.getEJBLocalHome(JNDINames.GSService_EJB_LOCAL
          )).create();
    }
    catch (CreateException ce) {
      throw new WEBSysException("CreateException found.", ce);
    }
  }

}